package br.edu.fanor.geract.services.impl;

import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import br.edu.fanor.geract.entity.Disciplinas;
import br.edu.fanor.geract.services.DisciplinasServicesRemote;

@Stateless
public class DisciplinasServiceImpl implements DisciplinasServicesRemote{

	@PersistenceContext(unitName="geract")
	private EntityManager on;
	
	@Override
	public Disciplinas Inserir(Disciplinas disciplinas) {
		on.persist(disciplinas);
		return disciplinas;
	}

}
